package cu.tedu.egmvc4.controller;

import cu.tedu.egmvc4.mapper.UserOrderMapper;
import cu.tedu.egmvc4.pojo.entity.UserOrder;
import cu.tedu.egmvc4.pojo.vo.OrderListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/order/")
public class UserOrderController {

    @Autowired
    private UserOrderMapper userOrderMapper;
    @RequestMapping("select")
    public OrderListVO select(int cid){
        return userOrderMapper.select(cid);
    }
}
